package com.baidu.sggc.data.req;

import lombok.Data;

@Data
public class AppInstanceListReq {
  private int pageNum;
  private int pageSize;
  private String departmentId;

  public void validate() {
    if (pageNum < 1) {
      throw new IllegalArgumentException("pageNum cannot be less than 1");
    }
    if (pageSize < 1) {
      throw new IllegalArgumentException("pageSize cannot be less than 1");
    }
  }
}
